﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
    public partial class AdminData
    {
        private String FormatName(String name)
        {
            name = name.Trim();
            return name.Substring(0, 1).ToUpper() + name.Substring(1).ToLower();
        }

        partial void PhysicianFirstName_Changed()
        {
            if (this.PhysicianFirstName != null)
                this.PhysicianFirstName = FormatName(this.PhysicianFirstName);
        }

        partial void PhysicianLastName_Changed()
        {
            if (this.PhysicianLastName != null)
                this.PhysicianLastName = FormatName(this.PhysicianLastName);
        }

        
    }
}
